﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="RezeptEingabe.aspx.cs" Inherits="Rezepto.RezeptEingabe" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<asp:Panel runat="server" ID="ForbiddenArea">Um ein Rezept einzugeben müssen Sie sich zuerst <a href="/Account/Login.aspx">einloggen</a> oder <a href="/Account/Register.aspx">registrieren</a>.
</asp:Panel>
<asp:Panel runat="server" ID="RezeptEingabeArea" Visible="False">
<asp:Label runat="server" ID="errorLabel" ForeColor="Red"></asp:Label>
<h2>Rezeptname</h2>
<asp:Label ID="RezeptNameLabel" runat="server" AssociatedControlID="RezeptName">Rezeptname:</asp:Label>
<asp:TextBox ID="RezeptName" runat="server" ></asp:TextBox>
<asp:Label ID="KategorieLabel" runat="server" AssociatedControlID="KategorieList">Kategorie:</asp:Label>
<asp:DropDownList ID="KategorieList" runat="server"></asp:DropDownList>
<h2>Rezeptbild</h2>
<asp:FileUpload ID="FileUpload" runat="server"/>
<h2>Zutaten</h2>
<asp:PlaceHolder ID="ZutatenTabPlaceHolder" runat="server">
<asp:table ID="ZutatenTable" runat="server">
<asp:TableHeaderRow runat="server">
    <asp:TableHeaderCell runat="server" Scope="Column" Text="Menge" />
    <asp:TableHeaderCell runat="server" Scope="Column" Text="Einheit" />
    <asp:TableHeaderCell runat="server" Scope="Column" Text="Zutat" />
</asp:TableHeaderRow>    
</asp:table>
</asp:PlaceHolder>
<asp:Button runat="server" Text="+" ID="addIngredient" OnClick="addRow"/>
<br/>
<asp:Label ID="KalorienLabel" runat="server" AssociatedControlID="Kalorien">Kalorien:</asp:Label>
<asp:TextBox ID="Kalorien" runat="server"></asp:TextBox>
<h2>Zubereitung</h2>
<asp:textbox ID="Beschreibung" runat="server" TextMode="MultiLine" Height="200" Width="800" MaxLength="2000"></asp:textbox>
<br />
<asp:Button ID="Button1" Text="Speichern" runat="server" OnClick="OnSave"/>
</asp:Panel>
</asp:Content>
<%--<asp:Button runat="server" Text="Löschen" ID="delIngredient" OnClick="delRow--%>


